﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.GoodsSpec.Model
{
    public class GoodsSpecSet
    {
        /// <summary>
        /// 规格名
        /// </summary>
        [NullValidate("shop.spec.name.null")]
        [LenValidate("shop.spec.name.len", 2, 50)]
        public string SpecName { get; set; }

        /// <summary>
        /// 规格图片
        /// </summary>
        [LenValidate("shop.spec.icon.len", 0, 255)]
        [FormatValidate("shop.spec.icon.error", ValidateFormat.图片URI)]
        public string SpecIcon { get; set; }

        /// <summary>
        /// 文件ID
        /// </summary>
        public long? FileId { get; set; }

    }
}
